import request from '@/utils/request'

// 影院分页查询
export function fetchCinemaPage(params) {
  return request.get('/admin/cinema/page', { params })
}

// 影院详情
export function getCinemaById(id) {
  return request.get(`/admin/cinema/${id}`)
}

// 新增影院
export function createCinema(data) {
  return request.post('/admin/cinema', data)
}

// 更新影院
export function updateCinema(data) {
  return request.put('/admin/cinema', data)
}

// 删除影院
export function deleteCinema(id) {
  return request.delete(`/admin/cinema/${id}`)
}

// 批量删除影院
export function deleteCinemaBatch(ids) {
  return request.delete('/admin/cinema/batch', { data: ids })
}